<?php
$string = '[dico=1,3]BTM[/dico]';
$pattern = '/\[dico=(\d+),(\d+)](\w+)\[\/dico\]/i';
$replacement = '$3';
echo preg_replace($pattern, $replacement, $string);
?>
